<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'list.jsp' starting page</title>
		<link rel="stylesheet" type="text/css" href="css/styles.css">
		<script type="text/javascript" src="js/page.js"></script>
		<script type="text/javascript" src="js/simple.js"></script>
		<script type="text/javascript" src="js/jquery-1.7.1.js"></script>
		<style type="text/css">
			.Table1{width: 690px;}
			.Table1 th{height: 40px;background: url('img/titbg.jpg') repeat-x;text-align: left;padding-left: 5px;}
			.Table1 td{height: 30px;padding-left: 5px;}
		</style>
		<script type="text/javascript">
			$(document).ready(function(){
				page.show({
					url:'bill!findTodaybyDateTime.do?',
					id:${pageIndex },
					count:${count }
				}, simple('#pageShow').Element());
			});
		</script>
	</head>

	<body>
		<table width="100%;" class="Table1">
			<tr>
				<th width="70px">类型</th>
				<th width="70px">类别</th>
				<th width="70px">金额</th>
				<th>备注</th>
			</tr>
			<s:if test="#request.BillList.size > 0">
				<s:iterator id="bill" value="#request.BillList">
					<tr>
						<td>${bill.billTypeId.name }</td>
						<td>
							<s:if test="#bill.billTypeId.income">
								收入
							</s:if>
							<s:else>
								支出
							</s:else>
						</td>
						<td>
							${bill.money}
						</td>
						<td>
							${bill.remark} &nbsp;
						</td>
					</tr>
				</s:iterator>
			</s:if>
			<s:else>
				<tr>
					<td colspan="4">
						<img src="img/zanwu.gif">
					</td>
				</tr>
			</s:else>
		</table>
	</body>
</html>
